Repository navigation
dsh-diagrams: a figure compiler, and two published figures as its benchmark - #22
Merged
Merged
Conversation
…chmark A fourth kind (`figure`) compiles a JSON spec on the host: measured with the Core-14 text tables, placed by rows/columns/panels, routed with orthogonal leaders, emitted as one SVG at a paper's column width. Geometry is a contract (f0-spec -> f1-layout -> f2-paper): overlap, bounds, print size, greyscale separation and a code line wider than its pane come back as diagnostics. The reference corpus makes "paper level" testable: two published figures (GGUF byte layout, NEO motivation plate) rebuilt in the grammar, each with a provenance note, an anatomy, an executable rubric and the committed vector. check-figure-corpus.mjs rebuilds both, requires byte-identical output, fails on drift and traces every rubric row to a block id and a label. Also: the paper-figures skill, figure export (json/svg/png), and the client reporting the right kind for a compiled picture.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A fourth diagram kind,
figure, that compiles a JSON spec into one vector figure, and a reference corpus that makes "paper level" testable.meta,tensor,link, �), and the export isjson/svg/png.The corpus
Two published figures, rebuilt in the grammar, with provenance, an anatomy, an executable rubric and the committed vector:
gguf-file-layout(516 pt)neo-motivation(516 pt)check-figure-corpus.mjsrebuilds both, requires byte-identical output twice, fails on drift against the committed SVG, and traces every rubric row to a block id and a label in the picture.Licence note � please read before merging
reference/THIRD-PARTY.mdrecords each target with its sha256 and a removal line. Two caveats, stated plainly:git rmof that one file degrades the corpus check to its structural tier instead of breaking it.Checks
check-node-routes.mjs� all passed (8 new figure assertions)check-client-bundles.mjs� all passed (per-kind export formats)check-skill-examples.mjs� 25 passedcheck-diagrams-kit.mjs� 48 passedcheck-figure-corpus.mjs� 2 figures, ~80 assertionscheck-no-secrets.mjs,check-scripts.mjs� OKNot in this PR
PDF export for figures (no host rasteriser), a TikZ emitter, and a
rowsstretch so a short column fills its row.